package com.zzzyh.forumsystemclient.cotroller;

import com.zzzyh.forumsystemclient.common.AppResult;
import com.zzzyh.forumsystemclient.model.SysDictData;
import com.zzzyh.forumsystemclient.services.IDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys/dictData")
public class DictDataController {
    @Autowired
    private IDictDataService dictDataService;
    @RequestMapping("/selectDataByDictTypeCache/{dictType}")
    public AppResult<List<SysDictData>> selectDataByDictTypeCache(@PathVariable String dictType){
        return AppResult.success(dictDataService.selectDataByDictTypeCache(dictType));
    }
}
